<layout name="layout" />

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function users(id){
				$.post("{:U('ajax_user_info')}",{id:id},function(data){
					if(data==0){
						$(".users").html('<h1>该用户资料缺失</h1>').show();
						
					}else{
						$(".users").html(data).show();
					}
				});
			}
		</script>
	</head>
	<body>
		
		<table border="" cellspacing="" cellpadding="">
			<tr>
				<th>ID</th>
				<th>NAME</th>
				<th>PASS</th>
				<th>加入时间</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<volist name="data" id="row">
			<tr>
				<td>{$row[id]}</td>
				<td onclick="users({$row[id]})">{$row[name]}</td>
				<td>{$row[pass]}</td>
				<td>{:date('Y-m-d H:i:s',$row[time])}</td>
				<if condition="$row['status'] eq 0">
					<td>开启</td>
				<else />
					<td>黑名单</td>
				</if>
				<td>
					<a href="{:U('reset',array('id'=>$row['id']))}">重置密码</a>
				</td>
			</tr>	
			</volist>
			
		</table>
		{$total}
		<nav>
			{$page}
		</nav>
		
		<div class="users" style="display: none;">
			
		</div>
		
		
	</body>
</html>
